<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/8/7
  Time: 15:06
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <%
        String path = request.getContextPath();
        String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
    %>
    <!-- 基准路径 -->
    <base href="<%=basePath%>">
    <title>Title</title>
    <style>
        body{
            background: url("/img/31.jpg");
            background-size: 100%;
        }
        h1{
            margin-top: 110px;
        }
        table{
            height: 400px;
            width: 800px;
        }
        .rq{
            color: fuchsia;
        }
        input{
            background-color:transparent;
        }
    </style>
</head>
<body>
<h1 align="center">添&nbsp;&nbsp;&nbsp;加&nbsp;&nbsp;&nbsp;图&nbsp;&nbsp;&nbsp;书</h1>
<form  action="books?method=addBook" method="post" enctype="multipart/form-data">
    <table border="1px" align="center" width="500px" cellspacing="0px">
        <tr>
            <th>书贴</th>
            <td><input type="file" name="photo"></td>
            <td class="rq">*必填项</td>
        </tr>
        <tr>
            <th>书名</th>
            <td><input type="text" name="bname"></td>
            <td class="rq">*必填项</td>
        </tr>
        <tr>
            <th>价格</th>
            <td><input type="text" name="price"></td>
            <td class="rq">*必填项</td>
        </tr>
        </tr>
        <tr>
            <th>作者</th>
            <td><input type="text" name="author"></td>
            <td class="rq">*必填项</td>
        </tr>
        <tr>
            <th>出版社</th>
            <td><input type="text" name="press"></td>
            <td class="rq">*必填项</td>
        </tr>
        <tr>
            <th>日期</th>
            <td><input type="text" name="pubdate"></td>
            <td class="rq">*必填项</td>
        </tr>
        <tr>
            <th>数量</th>
            <td><input type="text" name="number"></td>
            <td class="rq">*必填项</td>
        </tr>
        <tr>
            <th>分类</th>
            <td>
                <input type="checkbox" name="calssift" value="竞技">竞技
                <input type="checkbox" name="calssift" value="玄幻">玄幻
                <input type="checkbox" name="calssift" value="悬疑">悬疑
                <input type="checkbox" name="calssift" value="科幻">科幻
            </td>
            <td class="rq">*必填项</td>
        </tr>
        <tr>
            <th>状态</th>
            <td>
                <select name="area">
                    <option value="0">请选择状态</option>
                    <option value="1">热销</option>
                    <option value="2">完结</option>
                    <option value="3">下架</option>
                    <option value="4">付费</option>
                </select>
            </td>
            <td class="rq">*必填项</td>
        </tr>
        <tr>
            <td  align="center" colspan="3">
                <input type="submit" value="添加">
                <input type="button" value="返回" onclick="history.back()">
            </td>
        </tr>
    </table>
</form>
</body>
</html>
